<?php
/**
 * Created by PhpStorm.
 * User: Heido
 * Date: 2019/10/16
 * Time: 10:09
 */

namespace app\common\model;


use think\Model;

class Upload extends Model
{
    protected $table = 'think_picture';
    public static function getInfo($data){

       $picture = self::where(['sha1'=>$data['sha1']])->find();
       return $picture;
    }

    public function setInfo($data){

        $picture = $this->save($data);
        return $picture;
    }

}